package com.dds.system.domain.app;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dds.common.annotation.Excel;
import com.dds.common.core.domain.BaseEntity;

/**
 * 用户积分明细对象 app_user_score_detail
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor(staticName = "of", force = true)
public class AppUserScoreDetail
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
//    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private String userId;

    /** 枚举值: 1增加积分,2削减积分 */
    @Excel(name = "枚举值: 1增加积分,2削减积分")
    private String changeType;

    /** 枚举值: 1线下消费,2积分兑换,3订单退款，4：商城 */
    @Excel(name = "枚举值: 1线下消费,2积分兑换,3订单退款，4：商城")
    private Integer changeScene;

    /** 当 scene =1 时,联盟订单ID (union_shop_order.order_id) 当 scene =2 时,记录积分订单(union_product_order.order_id) */
    @Excel(name = "当 scene =1 时,联盟订单ID (union_shop_order.order_id) 当 scene =2 时,记录积分订单(union_product_order.order_id)")
    private String changeSceneId;

    /** 变动值 */
    @Excel(name = "变动值")
    private BigDecimal changeValue;

    /** 变动时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变动时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 商铺id */
    @Excel(name = "商铺id")
    private String shopId;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;
}
